﻿using System;
using Terraria.Social;

namespace Terraria.Achievements
{
	// Token: 0x020004A9 RID: 1193
	public class ConditionIntTracker : AchievementTracker<int>
	{
		// Token: 0x060027ED RID: 10221 RVA: 0x0001BF8A File Offset: 0x0001A18A
		public ConditionIntTracker() : base(TrackerType.Int)
		{
		}

		// Token: 0x060027EE RID: 10222 RVA: 0x0001BF93 File Offset: 0x0001A193
		public ConditionIntTracker(int maxValue) : base(TrackerType.Int)
		{
			this._maxValue = maxValue;
		}

		// Token: 0x060027EF RID: 10223 RVA: 0x0001BFA3 File Offset: 0x0001A1A3
		public override void ReportUpdate()
		{
			if (SocialAPI.Achievements != null && this._name != null)
			{
				SocialAPI.Achievements.UpdateIntStat(this._name, this._value);
			}
		}

		// Token: 0x060027F0 RID: 10224 RVA: 0x00006B58 File Offset: 0x00004D58
		protected override void Load()
		{
		}
	}
}
